package com.systemCapacity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.systemCapacity.common.dto.AttributeDto;
import com.systemCapacity.common.dto.BlueAttributeDto;
import com.systemCapacity.common.dto.BlueEquipmentDto;
import com.systemCapacity.entity.Attribute;

import java.util.List;

public interface AttributeService extends IService<Attribute> {

    List<AttributeDto> getTemplateAttributes(String templateId);

    List<AttributeDto> getEquipmentAttributes(String equipmentId);

    List<BlueEquipmentDto> getEquipmentBlueAttributes(String equipmentId);
    String getEquipmentBlueAttributesDesc(String equipmentId,String deviceId);

    boolean saveAttribute(String id, AttributeDto dto);

    Attribute getParentAttribute(AttributeDto dto, String templateId);

    boolean editAttribute(AttributeDto dto);

    public boolean editBlueAttribute(List<BlueAttributeDto> attributeDtoList);

    boolean updateChildAttribute(AttributeDto dto);
}
